import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    header:{
      backgroundColor:'#fff',
      color:'#fff',
      isTop:true
    },
  },
  getters: {
    
  },
  mutations: {
    setBackground(state,backgroundColor){
      state.header.backgroundColor = backgroundColor
    },
    setColor(state,Color){
      state.header.color = Color
    },
    setIsTop(state,IsTop){
      state.header.isTop = IsTop
    }
  },
  actions: {
  },
  modules: {
  }
})
